<div id="grailsLogo" role="banner" class="shifted-top">
	<div class="left"><a href="http://grails.org"><img src="${resource(dir: 'images', file: 'grails_logo.png')}" alt="Grails"/></a></div>
	<div class="right">
		<sec:ifLoggedIn>
			Welcome, <i>${user?.username}</i> <g:link controller="logout" action="index">log out</g:link>
		</sec:ifLoggedIn>
		<sec:ifNotLoggedIn>
			<g:link controller="account" action="register">register</g:link>
			<g:link controller="login" action="index">login</g:link>
		</sec:ifNotLoggedIn>
	</div>
	<div class="clear"></div>
</div>

<div class="nav" role="navigation">
	<ul>
		<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label" /></a></li>
		<sec:ifLoggedIn>
			<li><g:link controller="account"><g:message code="default.nav.account.label" default="Account" /></g:link></li>
		</sec:ifLoggedIn>
		<sec:ifAnyGranted roles="ROLE_ADMIN">
			<li><g:link controller="admin"><g:message code="default.nav.administrator.label" default="Administrators" /></g:link></li>
		</sec:ifAnyGranted>
	</ul>
</div>